﻿
 <SCRIPT LANGUAGE="JAVASCRIPT"> 
function chck()
{  var  count=0;
   for (var i=0;i<form.length;i++)
   if ((form[i].type == "radio") && (form[i].checked))
   count++; 
   if (count==0)
      { return false;  }
   else
      { return true;   }
}
 
function Add(SourceList,TargetList)
	{
	var nIndex = SourceList.selectedIndex;
 	var nCount = 0;  
	if (nIndex == -1)
	{
		// Process continue only if at least one item selected
		//alert("请先选择一项!");
		return;
	}
	for (i=0;i<SourceList.length;i++)
  {
     if (SourceList.options(i).selected==true)
     {    
         if (inSouceList(SourceList.options(i).value,TargetList)==false)
         {
          	var objSelected = new Option(SourceList[i].text, SourceList[i].value);
           	TargetList.options[TargetList.length] = objSelected;
         }
     }     
	}
  for (var i=0;i<TargetList.options.length;i++)
  {
    TargetList.options(i).selected=true;
  }
	if(navigator.appName=="Netscape")
	{
		history.go(0)
	}
 }
 function inSouceList(SourceListOption,TargetList)
 {
 	  for (i=0;i<TargetList.length;i++)
    {
	     if (TargetList.options[i].value==SourceListOption)
       {
        	 return true;
       }
    }   
    return false;
 }  
function Remove(SelectList)
	{
	var nIndex = SelectList.selectedIndex;
 	var nCount = 0;
	if (nIndex == -1)
	{
		// Process continue only if at least one item selected
		//alert("请先选择一项!");
		return;
	}
  while(nCount<SelectList.length)
  {
       if (SelectList.options(nCount).selected==true)
       {
       	 SelectList.options[nCount] = null;
       }
       else
       {
         nCount++;
       }
  }
	if(navigator.appName=="Netscape")
		{
		history.go(0)
		}	
	}
 function enter()
 {
   var srcEle = window.event.srcElement;
   var tmp;   
   tmp = window.showModalDialog("pub_pub.Dialog_Date?vc_input=" + srcEle.value);
     if ( tmp.indexOf("/") != -1)
     {
        srcEle.value = tmp;
     }
     return;
 }   
 function check_num()
 {
 	 if (window.event.keyCode > 57 || window.event.keyCode < 48)
	 {
	 		window.event.returnValue = false;
	 }
 }
 function check_blank()
 {
 	 if (window.event.keyCode < 48)
	 {
	 		window.event.returnValue = false;
	 }
 }
  
function check_num_dot()
{
 	 if (window.event.keyCode > 57 || window.event.keyCode < 46)
	 {
  		 window.event.returnValue = false;   
	 }
   else
   {
      if(window.event.keyCode==47)
      {
    		 window.event.returnValue = false;
      }
      if(window.event.keyCode==46)
      {
         if (window.event.srcElement.value.indexOf(".")!=-1)
         {
        		 window.event.returnValue = false;
         }
      }   
    }  
 }
  
 function submitonce(theform)
 {
 if (document.all || document.getElementById)
 {
 for (i=0;i<theform.length;i++)
 {
 var tempobj = theform.elements[i]
 if (tempobj.type.toLowerCase() =="button")
 tempobj.disabled = true
 }
 }
 }
 
  function CheckAll() 
 {
   var i = 0;
   for (i=0; i < window.document.forms[0].elements.length; i++) 
   {
     if(window.document.forms[0].elements[i].Chk<3) 
     {
       if(window.document.forms[0].elements[i].value=="")
       {
         alert(window.document.forms[0].elements[i].alt);
         window.document.forms[0].elements[i].focus();
         return;
       }
       else if (window.document.forms[0].elements[i].Chk==2)
       {
         if (NotNumber(window.document.forms[0].elements[i].value))
         {
            alert("提示信息：\n不是有效的数字，请重新输入。");
            window.document.forms[0].elements[i].focus();
            return;
         }
       }
     }
     else if(window.document.forms[0].elements[i].Chk==3)
     {
       if(window.document.forms[0].elements[i].value!="")
       {
         if (NotNumber(window.document.forms[0].elements[i].value))
         {
            alert("提示信息：\n不是有效的数字，请重新输入。");
            window.document.forms[0].elements[i].focus();
            return;
         }
       }
     }
   }
   window.document.forms[0].submit();
   return true;
 }
 function NotNumber(Field)
 {
   var j = 0;
   var k = 0;
   for (var i=0; i<Field.length; i++)
   {
      var ch=Field.substring(i,i+1);
      if((ch>="0")&&(ch<="9")) 
      {
        j=0;
      }
      else if(ch==".") 
      {
        k++;
      }
      else
      {
        j=1;
        break;
      }
   }
   if ((j==0)&&(k<2))
   {
      return false;
   }
   else
   {
      return true;
   }
 }
 function openwindown(page)
 {
    window.open(page,"newuser","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=400,left=100,top=150");
 }
</SCRIPT>
 

<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<LINK href="css/style.css" rel=stylesheet>
<div ID="overDiv" STYLE="position:absolute; visibility:hide; z-index:1;"></div>
<SCRIPT language=JavaScript src="css/pub_Calendar.js"></SCRIPT>
<script LANGUAGE="JavaScript" SRC="../PUB/ShowTIP.JS" TYPE="text/javascript"></script>
<title>未确认需求一览表</title>
<SCRIPT LANGUAGE=javascript>
      function submit_form(theForm,i)
      {
        var count=0;
        for (var k = 0; k < theForm.length; k++)
        if ((theForm[k].type == "checkbox") && (theForm[k].checked))
        count++;
        if (count==0)
        {
          alert("提示信息：\n请选择需求计划。");
          return;
        }
        if (i==1) 
        {
          if(count>1)
          {
            alert("提示信息：\n只能选择一个需求计划操作。");
            return;
          }
         }
        if (i==2) 
        {
           goAhead = confirm("确认删除需求计划？");
           if(goAhead==false)
           {
               return;
           }
         }
         document.form.p_type.value=i;
         window.document.form.submit();
         submitonce(form);
		 window.close();
		 return true;
	 }
      function select_check(theForm)
      {
        var count=0;
        for (var k = 0; k < theForm.length; k++)
        if ((theForm[k].type == "checkbox") && (theForm[k].checked))
        count++;
         if (count==0)
         {
            for (k = 0; k < theForm.length; k++)
            {
              if (theForm[k].type == "checkbox")
              theForm[k].checked=true;
            }
         }
         else
         {
            for (k = 0; k < theForm.length; k++)
            {
              if (theForm[k].type == "checkbox")
              theForm[k].checked=false;
            }
         }
      }
</SCRIPT>
</head>
<body>
<div>
产品名称：<input type="text" size=10 value="" name="p_prodno">&nbsp;&nbsp;
产品编码：<input type="text" size=10 value="" name="p_prodname">&nbsp;&nbsp;
</div>
<div>
规格型号：<input type="text" size=10 value="" name="xinghao">&nbsp;&nbsp;
<input type="button" value="搜索" onClick="submit_form_cx()"></td>
</div>
<div>
<center><font color='#000064'>◆&nbsp;</font><font color='#000064'>首页 上一页</font>&nbsp;<a href=Order_ytb_list.asp?p_type=&p_prodno=&p_prodname=&p_status=&p_stocktype=&p_ordertype=&page=2><font color='0000BE'>下一页</font></a>&nbsp;<a href=Order_ytb_list.asp?p_type=&p_prodno=&p_prodname=&p_status=&p_stocktype=&p_ordertype=&page=26><font color='0000BE'>尾页</font></a><font color='000064'>&nbsp;共 257 个需求计划 每页10 个需求计划</font><font color='000064'>&nbsp;页次:<font color=blue>1</font>/26页</font><font color='#000064'>&nbsp;◆&nbsp;</font>
</div>
<TABLE style="LINE-HEIGHT: 30px" cellSpacing=1 cellPadding=0     width="100%"  bgColor=#336699 borderColorLight=#006699 border=0>
<tr>
<td>
<table cellpadding="3" cellspacing="1" border="0" width="100%">

<center>
<form name=form action="pclass_select.html" method="post">
    <tr  class="t1">
    <td nowrap align="center">选择</td>
    <td nowrap align="center">序号</td>
    <td nowrap align="center">产品编码</td>
    <td nowrap align="center">产品名称</td>
    <td nowrap align="center">有无供应商</td>
    </tr>

    <tr class="t2" >
    <td align=center><input type="checkbox" name="p_orderno" value="1000201011133305"></td>
    <td >1</td>
    <td >W64001005000<br></td>
	
    <td >晶振(HC-49U-500K-0.005%)<br></td>
    
    <td >有<br></td>
     </tr>

    <tr class="t2" >
    <td align=center><input type="checkbox" name="p_orderno" value="1000201011133272"></td>
    <td >2</td>
    <td >W64001005000<br></td>
	
    <td >晶振(HC-49U-500K-0.005%)<br></td>
    
    <td >无<br></td>
    
    </tr>

    <tr class="t2" >
    <td align=center><input type="checkbox" name="p_orderno" value="1000201011133262"></td>
    <td >3</td>
    <td >W64001005000<br></td>
	
    <td >晶振(HC-49U-500K-0.005%)<br></td>
    
    <td >有<br></td>
    
    </tr>

</table></td></tr></table>

<input type="hidden" name="p_type" value="">
<p align=center>
<input type=button  value="全选/取消" onClick="select_check(document.form)">
<input type=button  value="确定/关闭窗口" onClick="submit_form(document.form,4)">

   <input type=button  value="放入待录入产品目录" onClick="submit_form(document.form,1)">
</p>
</form>
</body>
</html>
<script language="javascript"> 
   function OrderPrint()
   { 
    //  window.open("Order_Print.ASP,","toolbar=0,resizable=yes,location=0,status=0,menubar=1,scrollbars=1,width=800,height=600,left=0,top=0");
      window.open("Order_Print.ASP");
   }    
</script>











